
<link href="css/layout.css" rel="stylesheet" type="text/css" />
<div id="childInfo"><h2>List of Income</h2><br/>
	<table>
		<tr>
			<?php 
				$count = 0;
				$numberOfRow = 3;
						
				foreach ($_SESSION['user_key_income_list'] as $child) 
				{
					if($count < 2)
					{
						if(($count % $numberOfRow) == 0)
						{
							echo "</tr><tr>";
						}
						echo "<td align='center'><a href='index.php?page=tree&child=".$child->getMgmId()."'><div class='block-level emphasize-darkDefault' >";
						echo "<br/>" . $child->getMgmId() . "<br/><br/> Total = " . $child->getChild(). "<br/>Active = " . $child->getChildActive();
						echo "</div></a></td>";
						$count++;
					}					
				}
				$baki = $numberOfRow - ($count % $numberOfRow);
				for($i = 0; $i < $baki; $i++)
				{
// 						echo "<td><div class='block-level emphasize-dark'>&nbsp;</div></td>";
					echo "<td>&nbsp;</td>"; 
				}
			
			?>
		
		</tr>
	</table>
</div>

